package com.bdjk.bdmw.InfoGath.business.iparent.service.impl;

import com.bdjk.bdmw.InfoGath.business.iparent.dao.IparentPositionDAO;
import com.bdjk.bdmw.InfoGath.business.iparent.dao.impl.IparentPositionDAOImpl;
import com.bdjk.bdmw.InfoGath.business.iparent.model.IparentPositionModel;
import com.bdjk.bdmw.InfoGath.business.iparent.service.IParentPositionService;

public class IParentPositionServiceImpl implements IParentPositionService {

	private IparentPositionDAO iparentPositionDAO = new IparentPositionDAOImpl();

	@Override
	public int saveMessage(IparentPositionModel model) {
		// TODO Auto-generated method stub
		int positionId=iparentPositionDAO.savePosition(model);
		iparentPositionDAO.saveExtension(model, positionId);
		return 0;
	}

	@Override
	public int savePosition(IparentPositionModel model) {
		// TODO Auto-generated method stub
		return iparentPositionDAO.savePosition(model);
	}


}
